package cn.abcsys.cloud.devops.runtime.entity;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;

public class Event {
	private Integer eventId;
	private String eventDesc;
	private String eventName;
	private String eventResult;
	@JsonSerialize(using = DateSerializer.class)
	private Date eventTime;
	private Integer eventObjectID;
	private String eventType;
	private Integer userId;
	private Integer envId;
	public Integer getEventId() {
		return eventId;
	}
	public void setEventId(Integer eventId) {
		this.eventId = eventId;
	}
	public String getEventDesc() {
		return eventDesc;
	}
	public void setEventDesc(String eventDesc) {
		this.eventDesc = eventDesc;
	}
	public String getEventResult() {
		return eventResult;
	}
	public void setEventResult(String eventResult) {
		this.eventResult = eventResult;
	}
	public Date getEventTime() {
		return eventTime;
	}
	public void setEventTime(Date eventTime) {
		this.eventTime = eventTime;
	}
	public Integer getEventObjectID() {
		return eventObjectID;
	}
	public void setEventObjectID(Integer eventObjectID) {
		this.eventObjectID = eventObjectID;
	}
	public String getEventType() {
		return eventType;
	}
	public void setEventType(String eventType) {
		this.eventType = eventType;
	}
	public Event() {
		super();
	}
	public String getEventName() {
		return eventName;
	}
	public void setEventName(String eventName) {
		this.eventName = eventName;
	}
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getEnvId() {
		return envId;
	}
	public void setEnvId(Integer envId) {
		this.envId = envId;
	}
	public Event(String eventDesc, String eventName,String eventResult,
			Integer eventObjectID, String eventType,Integer userId) {
		super();
		this.eventName = eventName;
		this.eventDesc = eventDesc;
		this.eventResult = eventResult;
		this.eventObjectID = eventObjectID;
		this.eventType = eventType;
		this.userId = userId;
	}
}
